update density info on resize