dynamically resize page headers