fixed the menu slide bug