fixing bug with adding slides without themplate