js for card slider width buttons