Added override to disable horizontal sliding when necessary