Keeping objects according to sizes and categories is a good idea. For example, you should keep all spice jars in one rack, boxes in another, cans in another, and so on. Organizing a pantry is a tedious task, but you will get better with practice.