added margin change to img slider