code changes in layer-slider for video