made slide show dynamic