The ones here showcase cookbooks in a kitchen but they would work just as well to corral tubes and jars in a bath or, made slightly deeper, to contain bottles and other bar supplies.
Source brass gallery rail fittings online at Paxton Hardware.
Turn an awkward nook into a handsome slice of storage using shallow shelves finished with gallery rails