VID-1974 setting a border around all gallery images

Need whitespace before 'thumb' and after $thumb.