On the sub-permutations of pattern avoiding permutations