fixing gallery json