implementing slide and menu