Several thousands of slum dwellers gathered on the narrow path to flee from the flames on the north side.