move initialization of slidingDuration to init