added javascript from image background resizing and rows for every two items