fix image slide bug