Dynamics of the lattice and spins in the phase-separated manganite (Eu$_{1-x}$Gd$_{x}$)$_{0.6}$Sr$_{0.4}$MnO$_3$