Combine both slider and change source code