the number of people in the city was increasing by more than a thousand per day , and even with massive building programs and densely crowded slums , a sizable fraction of the population lacked both shelter and the means to pay for it .