update heading margins