Add gallery functions