compacting height to make room for other things on a page