update when to class active previous next
aligning card images