This is an idea I borrowed from my aunt. She has a narrow ledge lined with these. It looks SO charming!
They are simply salt dips, topped with old buttons. I am always looking for Bakelite buttons, leather buttons or large coat buttons to layer together to make the lids. Old pins work nicely, too.
This is an old Avon pin.
I do suppose you could use these to hold very small objects.
To keep the lid from sliding around, glue a smaller button to the underside of the lid.