Improve description of match_template
Refactor final slicing