Refractive index of a glass slab using a travelling microscope