Sleeping pill and fetal movements

Tee

This May be a dumb question but google isn’t helping me.

I’m 39 weeks and last night couldn’t sleep at all. I took two unisom. Before it kicked in, baby was going crazy on me. It’s now been over 16 hours and although I can feel him change position when I sit down, he is very inactive today. Could it be the unisom or should I be more concerned?

TIA!