Set width of galleria-thumbnails div to 100% conditionally for amount of space taken by thumbnails