slider for density estimation