Improvement in displaying images in gallery - displayCategory