Anybody here sometimes shake in their sleep

A few nights ago I had been sleeping but I do not remember a dream however. I was shaking very much while I was asleep I felt it, and I woke up with my heart was racing and I continued to shake until about a minute after I woke up. Kind of like when you are REALLY cold during winter and you are shaking uncontrolably. This has happened to me maybe 3 times... I am still unsure if it was anxiety because I did take an anxiety pill before that even occured. Now I feel almost afraid to go to sleep...like my heart will stop beating or something. Weird things happen to me when I am sleeping.