tweaked index and css to display thumbnails like pinterest