First of all, welcome.
Telling us what kind of slide system helps others to give you help. Ours is power gear system, and a similar issue happened. Turned out to be alignment sensors. Shop replaced them, and re-aligned. Problem solved.
2007 National RV, Sea Breeze 1321, Ford F53,
Followed by a 2013 Wrangler JK Moab edition