Fixed the double slide up/slide down issue