Simplify getVisiblePages() in presentation mode
Merge pull request #3644 from Snuffleupagus/presentationMode-simplify-getVisiblePages

Simplify getVisiblePages() in presentation mode