splice pagination