If it goes out each time, then it's not the shear pin as it's needed for extending the slide also.
Often when this happens it's a case of low batteries. I'd plug it back into shore power or if shore power is not available, plug it into a generator. This should put a lot of power to the batteries.
Plugging it into power should also help if the battery terminals are dirty and not providing full power to the battery cables and therefore the 12V electric motor powering the slides.
Not all slides, but a lot of them, when they go out, to make the floor flat inside, when they're just about out, the slide goes down an inch or two. Then when bringing the slide back in, the motor has to have enough battery power to get the slide back up over that hump.
Let us know if plugging it in works.
Bill