modified thumbnails+some JS