added sliding function to the side nav.