retain slider values when switching from one overlay type to another