add am-target class to relevant target img