How would you design pagination for a large mobile dataset so the UI stays responsive and you avoid out-of-memory issues?