fixed a bug in trajectory join function that was discarding a single frame from unitcell_vectors