made index show exactly 18 images, failed at setting variable so we dont have to copy code