As was written, you should "smash" it to move the text independantly from the components. And another trick: Smash all components (you can use group smash), enable just the name and labels layer, group all again and make them the same font size, which could be smaller than what you used currently (depending on the PCB manufacturer). And sometimes the Gerber files has problems with TTF fonts, so change all to the Vector font, then you can be sure that it looks exactly like on the screen. The pins on the right could be labeled just J1 and J2, then you could move the label above and below. But right, usually it doesn't matter if it is outside the board outline, it will be just cut.