Fix submenu slide off screen bug