added limit and offset to getArticlesBy