fixing the image panel

• changed the logic so that the pagination section is not added for single items