Adds disabled class if there are no prev or next pages.