Evolution of dust attenuation in star-forming galaxies with UV slope, stellar mass, and redshift out to z∼ 5 | Synapse