added sliding menu function