Officials say many of the victims were sleeping in the surrounding homes -- poorly constructed shanties with tin roofs -- when the building collapsed .