improve math at div-animation2