pregnant- bad sleeping.

Who knows
Okay so I fell asleep for almost an hour at work today (I work alone in an office) and I wouldn't have minded if I didn't wake up needing more sleep and what not. 
How do I get more sleep at night without it affecting my work and while being able to get stuff done??