added functionality to sliding sections of the page