change in js for card spreading of page 3