make slide moving smoothly