My boyfriend doesn't like me on top😕

So I'll go to get on top during sex, and I'm not very good at the whole up and down motion, so I rock back and forth. it feels really good for me, but I can tell he doesn't enjoy and says how it sometimes gets rid of his hard on:/ I'm very petite so I know I'm not too heavy on top, how can I improve in this position?