Tried to implement some slicing of trajectories but the trajectory manager does not know how to append them