fixing gallery category slice formatting