center vertically and smoother animation