relationship issue.. red flag?

Amy
sometimes when my boyfriend and I are hanging out, he sometimes slaps my face. it's kinda harder than I'd like it to be and I tell him to stop but he thinks I'm joking. I hate when he does it around my parents because I don't know how to react. I try to play it off so my parents don't think something's wrong... what do I do? I've told him to stop and that didn't really work...