Dynamical distortion of nuclei in heavy ion reactions