City working with displaced residents of 'unsafe' apartment