added slide out functionality