Anal sex

Husband and I looking to "spice up " things in the bedroom . Just wanted some tips on how to prep for anal sex Bc I've done it once and it hurt at first and then I farted after he took it out . And I don't want that happening again lol .