add classes for gallery items