hide the prev or next button in some occasions
Merge pull request #234 from whywhy36/some-fix

hide the prev or next button in some occasions