Cleaning up the sliding animation