custom slider working