add active class to first thumbnail media gallery