Changed slideCounter to slideDelay