Fixed sliding detection outside of bounds