function fillTemplate() {
// Id of the slides template
// Remember to replace this with the Id of your presentation
var PRESENTATION_ID = "1izqUEFrnBb5ghRkV5Q84eaRuPSgi78s4e_O8lBy3gho";
// Open the presentation
var presentation = SlidesApp.openById(PRESENTATION_ID);
// Read data from the spreadsheet
var values = SpreadsheetApp.getActive().getDataRange().getValues();
// Replace template variables in the presentation with values
let hdr = values.shift()
var slides = presentation.getSlides();
//change i to any other index if desired
for (var i = 1; i < slides.length; i++){
slides[i].remove()
}
values.forEach(row =>{
let templateSlide = presentation.getSlides()[0].duplicate()
for ( var i = 1 ; i < 6; i++){