Offload items per row calculation to an AsyncTask