Any relationship advice?

I've been in a relationship with my boyfriend for 8 months. We've had a few rough patches but we've been better lately. Unfortunately, although I never realised, I'd started pickin my boyfriend over my friends (not blaming him) I'd left them early on nights out and not went to certain places so I could spend time with him instead. I've faded so much with my best friend and she's with a different group of girls. I'd always been friends with a few girls in my class and I've gotten closer with them lately but they have a name for themselves. They're really nice girls to be friends with but may not be the most respectful of themselves when it comes to boys. My boyfriend has called them tramps in previous and told me he'd break up with me if I kept being so close with them. I really don't know what to do. Although i love him sometimes he disrespects me and I've never put my foot down. In the past I could have been compared to them girls but not to the same extremes; there was a stage where I didn't have much respect for myself, as horrible as it is to say it's quite normal for the way people my age act. In sayin that though I never went as far as sex until I knew I loved my boyfriend. We've had so so many ongoing conversations about each of our pasts and he has called me a slut over it many times. 4 months ago I told him how much it hurt me and how it weakened me as a person. I have nowhere near as much confidence or like for myself as I did until this name calling. I promised myself the next time he said it that would be it, and he knew that. I told him I would be spending next Sunday with him and going out with the girls to a big event on Monday. He called me a slut and told me to fuck off and I ended with him. I know everything I've said makes him sound like a monster but he is so thoughtful and does treat me good for the most part but calling me a slut literally rips me apart. I really don't know what to do. I don't wanna chose friends over my boyfriend that i do love and really do want to be with but I can't just depend to be with him all the time and I don't deserve to be called that. I don't wanna leave myself in the position that I have no friends because my boyfriend dictates everything. Sometimes you are who your friends are but not in this case, I've learnt from my mistakes and I don't think my boyfriend understands that. I know that was such a long story and I sort of poured my heart out but if anyone has any advice please let me know.