fixed a picture slider bug