Fix thumbnails and grid.

* thumbnails can be sliced up in 2s/3s
* extracts an image class