Anal with IBD

okay I know some people might judge but I need advice. Me and my boyfriend used to do anal all the time until I was diagnosed with ulcerative colitis we haven’t really done it since but I’m dying to has anyone else got this problem. I’ve seen some anal relaxing gel and was wondering if that would help as it is painful but after a while it feels really good. I’m planning to buy some lube but I did want to try that also or if it will just irritate me and does it affect your partner?