adding pagination for animations