finish basic sliding functionality