add gallery fix