L.L.
Store everything in small upright baskets. You'll still have to take the front baskets out to get to the back baskets, but instead of pulling out tons of bottles, you're just pulling out a few baskets.
My husband goes through a TON of blank CD's, so I use the lids off the spindles, tipped upside down. They are clear so I can see what's inside, and I have about ten on one shelf in my hall closet (which is like your cabinet...deep, but shelves are short and not very wide.) For example, all the hairbands/headbands are in one. Nail polish, remover, files, etc in another. Bottles of body spray in another. You see what I mean. :) It would work in a bathroom cabinet too. If you don't have 500 CD spindle tops sitting in your basement like me, just buy some cheap clear plastic canisters/baskets and use those. :)