Add and use a base class for mappanel sliders.

This reduces the amount of copied code and reuses the methods from the
base class.
Merge pull request #204 from marcjansen/refactor-slider

Add and use a base class for mappanel sliders. (r=@bartvde)