Add function to resize the modal explicitly or to its contents dimensions