fix generate slide