Tidy up thumbnails per row stuff

And add new “adaptive” thumbnails setting which is very cool!