Fix for sliding on the Y-axis