Physisorption in confined geometry