VARIATIONS OF THE ISM COMPACTNESS ACROSS THE MAIN SEQUENCE OF STAR FORMING GALAXIES: OBSERVATIONS AND SIMULATIONS