M51 at z = 0.1 and z = 0.3