They don't have closure velcro or zippers so in the end if your items are a bit bigger than the pockets they can gather dust over time. If you want one that has zippers I would recommend looking at the Household Essentials Hanging Cosmetic and Grooming Travel Bag although the pockets vary in size and is one sided.
The pockets are not so big. I would say most are about 10 cm by 10cm and others 20cm by 10cm. How big are your jars is the question. They are just big enough for your jewelry set or sunglasses. I hope I helped. Measurement may not be point blank but close enough.
I think it would work well. Pockets are big enough to fit the nail polish. The hanger is well designed and should handle the weight of the nail polish without difficulty. Larger pockets at bottom would work well for nail files etc. And there's the benefit that if the nail polish leaks, its confined to one compartment. Its actually a very good idea, I might just do it myself ;)