bugfix: calculate current page if displayedElements was changed in user preferences