 
         // Select button of initial view controller - change to selected image
         buttons[currentPageIndex - 1].isSelected = true
-
-        updateSelectionBarFrame()
-
-        getValueToSubtract()
-        buttons.forEach { $0.frame.origin.x -= valueToSubtract }
-        selectionBar.frame.origin.x -= valueToSubtract
     }
 
     func createButtons() {

        }

        for button in buttons {

            let buttonHeight = button.frame.height
            let buttonWidth = button.frame.width


            }

            button.frame = CGRect(x: originX, y: originY, width: buttonWidth, height: buttonHeight)

            addFunction(button)
        }
    }

    private func getLeftSubtract() -> CGFloat {
        guard let firstButton = buttons.first else { return 0 }
        let convertedXOrigin = firstButton.convert(firstButton.frame.origin, to: view).x
        let barButtonWidth: CGFloat = equalSpaces ? 0 : barButtonItemWidth
        let valueToSubtract: CGFloat = (convertedXOrigin - offset + barButtonWidth) / 2 - x / 2
        return valueToSubtract
    }

    open func addViewController(_ viewController: UIViewController) {
