My daughter scares shakes and twitches in her sleep. She is scaring me

I have a one week old daughter and she has been scaring me lately. She twitches and and shakes when she sleeps. And its not a little bit..she looks like she having a seizure. And sometimes she will wake up twitching and gasping for breath. Is this her dreaming or genetic or something? I know my husband his hands or feet twitch when he falls asleep but it's not like THIS...and it stops once he does go to sleep. I'm just worried about her. Why is she shaking and twitching in her sleep??