Add the resizing/centering logic to headings