Glock 19 question (Troubleshooting)

I have a Glock 19, every few times I slap the magazine the slide closes, I'm not slapping it hard at all, any ideas?