Confined quantum systems and their limits