updated slider so the selected image fit to the holder