index page getting first paragraph as abstract and first image as thumbnail to make index gallery