Some of the old Glasgow slums had population densities amongst the highest in Europe at the time. Large families crammed into a single room with a shared toilet in the back court, that kind of thing.
The only way Glasgow could have kept the same population density with modern living standards would be high rise flats, and we saw how that turned out...