The liquid structure next to the walls of a slit pore, immersed in a model simple liquid, is studied through a liquid theory and grand canonical Monte Carlo simulations. A liquid correlation across slit walls, of finite width, is found. This correlation modifies the structure and capillary partial wetting and drying transitions of the nonhomogeneous fluid, when close to its liquid-vapor coexistence curve.