Static correlations functions and domain walls in glass-forming liquids: the case of a sandwich geometry