add gallery class