Text this: Accurate measurements of slice electron beam parameters at the undulator in seeded free-electron lasers