how to sleep to prevent hair loss