What were large apartment buildings that were often loud dirty and crowded called?

Large apartment buildings that were loud, dirty, and crowded were called tenements. Also, they were infested with rats and disease spread quickly. (A tenant)