Dust in high-redshift galaxies: reconciling UV attenuation and IR emission | Synapse