IconGrid: calculate icon size only once