add row class to center align thumbnails