A ray incident at angle θ on a face PQ of glass slab and passes through the opposite face RS as shown below. d is the lateral displacement of the ray.
If whole system is placed in the water whose refractive index is less than that of glass slab, then the lateral shift (d′)