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.
Merge pull request #423 from luizfonseca/fix-slick-not-centered-conditional

Fix index check when slick isn't in centered mode