make sure it has enough space before making the header shorter