function for manage increment delay in animation