Light obeys Maxwell's equations, not Newton's laws of motion. The concept of "deceleration" would normally apply to a particle under some force. That's not the right model for light. Instead, light is oscillating electric and magnetic fields. No physical object decelerates when light goes from air to glass - or vice versa. Instead, the fields have different parameters in the two media.
Normally, the interface between air and glass is modelled as a perfect, plane barrier. In fact, the case of reflection of light from a glass surface is more pointed: the light hits the glass/mirror at the speed of light in one direction and reflects instantaneously at the speed of light in the opposite direction.
That is the classical model of light. Athough, we can see that it must be an idealisation, as the glass is composed of atoms and molecules and is not a perfect, plane barrier.
To understand reflection and refraction at a deeper level requires the quantum theory of light (QED - Quantum Electrodynamics). Richard Feynman has a book and some lecture notes on this:
https://en.wikipedia.org/wiki/QED:_The_Strange_Theory_of_Light_and_Matter
In that model, the emission and detection of light becomes probabilistic and even further from Newton's laws of motion. In any case, the concept of deceleration or acceleration as understood in Newtonian mechanics is not part of the theory.