Another way to say "people can dream when they sleep" is "when sleeping poeple can dream"