finished all the sliding functionality