resized images to fit into the cards