add fragmention class to matched element