implemented gallery fix for all portfolio pages