Need help!!

Me and my husband had an argument yesterday about him lying to me and I prove to him that the girl who send a pic of them two to his phone was more then just an old friend but his ex. He keep deny it when I had prove!! He got so mad he started yelling at me and saying if I keep saying it his ex his going slap me. I got so scared I started crying and he keep yelling at me saying the same thing that he will hit me. I'm 28 weeks prego. I told him that it would be better for us not be together and he told me his not going let me take his son away and that he has more rights because I'm not working at the moment. I know if I go back home I'll get a good job and be able support my baby but he keeps telling me he has more rights since his in the army. Ugh idk what do I love him but then I hate the way he is towards me. Please don't be rude I just need some  advice??