Added 'prev', 'dots', 'next' classes to pagination