add animated pagination