add class to gallery to fix for responsive