set time limit on animation length