increment and decrement slides function added