I nailed my trays horizontally into the upper part of my cupboard. The spice tins fit perfectly on their sides on the trays. The magnetic bottoms cling to the back so they won’t want to fall forward. Since I had more spices than trays
I made a deal with myself pre-January that I would take on one home related project per month this year to finish up those sometimes random or sometimes necessary things I wanted done around the house. Things like "organize this.
storage solutions using baskets: Kitchen Counter Basket - Use a shallow basket to organize cooking oils and spices. Line the bottom of the basket with a metal cookie sheet to making cleaning up inevitable spills easier.