Question for pumping moms

When I am pumping milk comes and for a few minutes and then it stops. I take my breast out for a minute and when I put it back on the bump it starts milking again for a minute. why does this happen? I constantly have to take my boob out and put it back in for the milk to start pumping. I use the Medela swing pump.