Anal Sex problems

Ok so my boyf and I had anal for the first time last night. It was really painful for me because the skin around my anus kept splitting. Just wondering if you gals had any tips to stop this happening?