connected slide bar to map