Confinement effects on the properties of Janus dimers.