thumbnail index zero fixed in detail page