add functional sliding menu