Layering Transitions in a Gaussian-Core Model Under Geometrical Confinement