return totalImages + subDirectories.length - (indexNum - 1) * rows
return totalImages  - (indexNum - 1) * rows
	public int getCurrentImagesPerPage()	{		if (indexNum < totalIndexes)		{			return rows * cols;		}		else		{			return totalImages + subDirectories.length - (indexNum - 1) * rows					* cols;		}	}