add pagination in get classes list