Added ECSlidingAnimationDuration to control speed of animation