Fix index check when slick isn't in centered mode

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