Adds slide out functionality to navigation menu