Tested the sliding functionality