fixed PagerSlidingStrip by merging the source code

To @ns0714 @paragsagar @fcduarte  Please review the simple fix.

Thanks!