timeline: make sure not to set a negative size on elements.