fix indexing of images and portfolios 'tables'