compute traj. len
preview