Modify array_slice by SQL query

This task is part of story #7687 REST endpoint to list project's git repositories

Change-Id: I2d3aeac0c77f9395cce50f9dc86fbb11f67d08d2
Merge commit 'refs/changes/07/3407/2' of ssh://gerrit.tuleap.net:29418/tuleap into tuleap-stable-master

* ssh://gerrit.tuleap.net:29418/tuleap:
  Modify array_slice by SQL query

Change-Id: I6699abdb75143318a17b69a2131f8b71590b6629
This is Tuleap 7.8.99.25

Change-Id: I16d97abdda4184c131b5fd9782fa5691a9e7c8f5