Improve slider to not show the background line on the padding parts

When using padding, don't show the background line over the padded parts.