Thermal Expansion and Viscosity of Confined Liquids