restructuring how thumbnails are displayed. Fixes #23