

It is because in the rectangular glass slab, faces of slab are parallel to each other.So, all the refracted wavelengths emerge parallel to their incident direction. Thus the emergent beam is a parallel beam in case of a glass slab, while it is divergent in case of a prism.
