Questions for pumping moms

When I am pumping with my Medela swing my milk comes in for a few minutes and then I have to take my boob out and put it back in for the milk to start pumping again why does this happen? I constantly have to take it out after a minute or even a few seconds and put it back in for it to start pumping.