implemented height change animation.