Fixed problems with slide element ordering