Distance slider working