Spices are often sold in jars that we go then store in a closet.
However, not only is it not practical because then you can no longer see those at the bottom, but it also clutters up too much!
You can now store them much better, like this:
Yes, magnetic spice jars on the fridge. You can find it on Amazon for example.
It's quite pretty anyway, and it allows you to have them all at hand, exploiting a space that we often forget.
Otherwise, you can use an extendable rod. We explain how here.