Gazans pack hospitals or flee as war inches closer