CSS code

.slider{
 margin: auto;
}

Preview: