corrected gallery issues