Make a drawer divider for spices?
I would find plastic drawer dividers that fit your spices. You can also get new jars - all the same size and transfer spices to new jars to fit your dividers. Refill spice jars by buying spices in bulk food section.
You can make drawer divider like this https://www.hometalk.com/16103938/how-to-make-drawer-organisers-with-stuff-from-your-recycling-
Or you might want to try this https://www.hometalk.com/4812468/organizing-spice-drawer-makeover