fix image slider bug