slider working properly