Not sure what to think of this

Okay so my boyfriend and I have a friend group of like 6 people and when we all hang out he just kinda ignores my existence.... I have told him that it bothers me and he apologized and said he didn’t realize he was doing BUT he is still doing it...... for example we went to midnight bowling and laser tag all together over the weekend and the whole time he was playing around with them and just kinda brushed me off. I would go to sit next to him and he’s literally turn away from me and talk to his friends but on the flip side when it is just the two of us he’s all snuggly and lovey dovey and wants to sit with me and talk and hang out.