trim labels with ellipsis when not enough space