Exploring the IMF of star clusters: a joint SLUG and LEGUS effort