How to protect your hair while you’re sleeping, as explained by an expert