Analytical treatment of a simple fluid adsorbed in a slit-pore