update slide, support padding