So, don't store everything on the shelves. Vertical storage is the way to go for small rooms, and it works equally well in other small spaces, like your kitchen cabinets.
Joe Provey created these back of the door racks with a few hardwood (cherry?) 1x6"s, and gave them acrylic faces to see the jar labels. A few cuts on the table saw, and some quick glued joints, and voila! A custom made, still-hidden spice rack.