Whether for the pantry or inside a kitchen cabinet, a spice step rack can be a simple way to layout your various spices so that you can easily see which spice jar is which. A good rule of thumb is to keep the smaller sized jars on the bottom tier and place the taller jars on the second and third tiers for greater visibility. Just make sure that you know the exact dimensions of your cabinet so that the spice step rack can fit inside nicely so as to not interfere with the closing of the cabinet doors.
Spice step rack:
Spice step rack pictured: Madesmart 3.6 by 9.6 by 14-1/2 to 25-3/4 Inch Expandable Shelf Organizer
Some of these racks can be lengthened, so that they can be just the right size for the amount of spice bottles you have.
Seville Classics 3-Tier Expandable Bamboo Spice Rack Step Shelf Organizer