         }
         updateHudVerticalPosition(position: toolbarPosition)
     }
+
+    func updateHudVerticalPosition(position: CGFloat) {
+        let horizontalPosition = view.center.x - pageHud.frame.width / 2.0
+        let verticalPosition = position - pageHud.frame.height - 10
+        pageHud.frame = CGRect(x: horizontalPosition, y: verticalPosition, width: pageHud.frame.width, height: pageHud.frame.height)
+    }
     
     open func setHudHidden(hidden: Bool, animated: Bool) {
         _showPageNumberHud = !hidden

    public var contents: [RDPageContent] = []
    public var pagingView: RDPagingView
    public var pageSlider: UISlider
    public var currentPageHud: UIView
    
    public var preloadCount: Int {
        set {

    
    override open func viewDidLoad() {
        super.viewDidLoad()
        
        updateHudPosition()
        view.addSubview(pagingView)
        view.addSubview(pageHud)

        view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(setBarHiddenByTapGesture)))
        
        pagingView.frame = view.bounds
