updating sizes of page elements