Do you buy your spices in bulk? You might prefer hanging them for a whimsical display. Repurpose a small window treatment rod or use this
Fintorp IKEA rail and
Syrlig curtain clips to get the job done. Mount on the back of a pantry door to keep spices cool and dry.