Structure-based coarse-graining in liquid slabs | Synapse