Feature/gallery with non squared thumbs

made the gallery thumbs appear as specified in config, this is a little hackish so not sure if you want to merge rightaway, since different styles might break this