Adding curve to slide animation.