i'm just adding my views to an already answered query
bahut accha socha baalak!....
So you r thinking that if u pass ray parallel to the surface, it will pass straightway without going into glass slab. You r partially correct.
When we say that the ray is grazing on the surface, the situation actually is little complex.
when the ray is incident exactly at critical angle then the refracted ray is just 90deg to normal. Pay ur attention to 'exactly', i mean to say that as soon as the angle is just more than critical angle(even .0000001deg) then the ray would undergo Total Internal reflection. And when it is just less than critical angle(even 0.0000000001 deg) then the ray is not 90deg to the surface.
By heisenberg uncertainty principle there will always b some error, i.e. one can not make rays perfectly grazing the surface.
Practically a perfect angle of 90.000000000000000000000000000000 deg cant b achieved. So the almost 90 deg ray will always find some point of incidence.
But let us assume somehow one succeeds in making incident rays grazing the interface, then we want only one point of incidence on the glass slab. But suppose glass surface is perfectly smooth and plane such that the ray is just above the surface. Then we will need only one point of glass just one point above the surface so that the ray gets a surface to strike. And then it will trace the same path.
So practically the principle of optical reversibility is always true.