Fix index check when slick isn't in centered mode

The first and last elements weren't in the conditional/loop to receive the 'slick-active' class.