fixing incorrect slide show order.