Another tip is that on some cars, the front of the pan gets caught a crank counterweight when you're sliding it backwards.
Just rotating the crank maybe 30 degrees clears that.
You do want to verify it's not a rear main seal leak - all too common - which a pan gasket won't fix.