Adding support for both left and right slide.