Added pagination and fixed animations including better styling for buttons to trigger pagination.