Used to show similarities, Kubrick can reflect things on the Z axis, which is an axis of depth in space.
A clear example is in No.3 as he shows Jack aligned with the servant of The Overlook. In reality, the caretaker is not one of the wealthy guests, but another name for a janitor (an employee of the hotel).
In this image · No.2
Read Scene No.2