Added sliding function to tilt.

testing to see if there is any errors after adding the sliding function.