Weight gain from the pill

A`Tytiasia
I got on the pill when i got engaged last year but i had gained 20lbs. So i quit taking it. I recently got into a relationship 5 weeks ago and i decided that i cant afford to make any mistakes so i got back on the pill but im so afraid of gaining more weight. Does anyone have advice on how loosing the weight & keeping it down? PLEASE HELP ME.😏😞