added div and span tag for images and details link respectively