         })
     }
     
-    func updateHudHorizontalPosition(position: CGFloat) {
-        currentPageHud.frame = CGRect(x: view.center.x - currentPageHud.frame.width / 2.0, y: position - currentPageHud.frame.height - 10, width: currentPageHud.frame.width, height: currentPageHud.frame.height)
+    func updateHudVerticalPosition(position: CGFloat) {
+        let horizontalPosition = view.center.x - currentPageHud.frame.width / 2.0
+        let verticalPosition = position - currentPageHud.frame.height - 10
+        currentPageHud.frame = CGRect(x: horizontalPosition, y: verticalPosition, width: currentPageHud.frame.width, height: currentPageHud.frame.height)
     }
     
     open func cancelAutoBarHidden() {

            setToolBarHidden(hidden: !showSlider, animated: true)
            setHudHidden(hidden: !showPageNumberHud, animated: false)
        }
        updateCurrentPageHudLabel()
        registerPageNumberHud(true)
    }
    

        if isSliderEnabled, showSlider, let toolbarItems = toolbarItems, toolbarItems.count > 0 {
            toolbarPosition = navigationController?.toolbar.frame.minY ?? view.frame.height
        }
        else if #available(iOS 11.0, *) {
            toolbarPosition = toolbarPosition - bottomLayoutGuide.length
        }
        updateHudVerticalPosition(position: toolbarPosition)
    }
    
    func updateSliderValue() {
