Ouch! There isn’t a whole lot that can be done to speed the healing process other than being hands-off for a bit while the slim repairs itself.
Were you using lube at the time? If so, you may need to use more of it to prevent the friction that causes that irritation. If not, prolonged contact like that is definitely a time to use it!
Hope you feel better soon.
Nothing happens in contradiction to nature, only in contradiction to what we know of it. -Special Agent Dana Katherine Scully