Relativistic motion in gamma-ray bursts