Added ability to disable sliding