Suppose, in Young’s double-slit experiment, a glass slide of refractive index ng and thickness b is placed in front of the slit S1.

Young's experiment
If the experiment is set up in free space, this introduces an additional optical path length (ng – 1)b in the path S1P
Then, the optical path difference to the point P from S1 and S2 is,
∆l = S2P – [S1 P + (ng – 1)b]
= (S2P – S1P) – (ng – 1)b
= y d/D – (ng – 1)b … (1)
where y = PO’, d is the distance between S1 and S2 , and D is the distance of the screen from S1 and S2 . Thus, point P will be bright (maximum intensity) if ∆l = nλ,
where n = 0, 1,
2, … . The central bright fringe, corresponding to n = 0, will be obtained at a distance y0 from O’ such that,
∆l = y0 d/D– (ng – 1)b = 0
∴ y0 d/D = (ng – 1)b
∴ y0 = d/D (ng-l) b …(2)
Therefore, the central bright fringe and the interference pattern will shift up (towards P) by a distance y0 given by EQ. (2).
The distance of the nth bright fringe from O’ towards P is,

The distance of the (n + l)th bright fringe from O’ towards P is

Therefore, the fringe width,
w = yn + 1 – yn = \(\cfrac{λD}d\)….(5)
Thus, the fringe width remains unchanged.