fixing slider loop