losing weight

I was working really hard at losing weight when i found out im pregnant. is there a safe way that i can continue trying to lose weight so that when the baby comes it wont be as hard to lose it? and so that i wont gain so much?