Daughter shaking

Nickie
My daughter is 3 weeks old and sometimes when she is asleep (only happens when she's asleep) well she shakes like she's having a bad dream or something and I was wondering if this has happen too anyone and If so what was it and does it go away