upsample trajectories