near and far slider working