Consider installing a pull-out pantry with adjustable shelves to accommodate items of different sizes. This type of pantry allows you to customize the height of the shelves according to your needs. It provides flexibility and makes it easier to organize and access your pantry items.