Teacher’s tip for helping girls feel comfortable on their periods goes viral