3blue1brown's video covers this. The effect of "changing speed" is a change to the light's wavelength, not the speed of an impulse through the material--imagine taking a standing wave and pushing the peaks and valleys up and down so the wavelength looks really long. And since the frequency is unchanged, there's your appearance of high speed. This happens because the material changes the phase of the wave continuously.