Small change to how the sliding works