*improvents on filtering through limit and offset for getPathwayItems