fixed caching bug (zooming thumbnails), working on layout