fixed timeline zoom in/out algorithm