Another way to say "humans use pillows when they sleep" is "Humans use pillows while sleeping."