fix to pagination when the first and the last element has class ls-active
Merge pull request #1142 from deividmarques/3.3.3

fix to pagination when first and last element has class ls-active