disable slide left or right as needed