Dynamic resizing of the modal.