get_segments: fixed slow query for lots of active segs

    - if there are more than 10 interesting segments, query over the
      full extent and cut after the query