add style for gallery widget