Changes for resizing the elements when window is resized.