Enhanced the sliding system for the menu