temporary resizing of elements