Leaning and Sleeping

When you are in your room and are leaning against something that can be hard but mostly soft. You go to sleep and you are lying down on this. When you get up you are still lying on this. What am I?