Baby kicking in sleep and waking herself up

Why is my baby kicking around every 5 mins and dropping the pacifier or waking herself up from it? I know sometimes it might be gas but I’ve also read that it’s like a reflex? Any ideas?? When does it stop? 😂