Slice a sequence based on 4-gamete test