Bathroom shelves are usually added for storage or aesthetic reasons. No matter what they are used for, it's good practice to keep a moderate amount of empty space in between items on the ledge.