during the war , the nazis burned more than 300 villages in belarus and slaughtered most of their inhabitants , often by burning down their houses with the peasants inside , shooting anyone trying to escape .