[guilib] animation length was calculated incorrectly from effects

with different delays.