 
         // 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() {

                if let size = buttonWithImage.size {
                    button.frame.size = size
                }

            }

            // Tag
            tag += 1
            button.tag = tag

    }
    public var equalSpaces: Bool = true {
        didSet {
            updateButtonsLayout()
        }
    }
    public let pageController = UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal)
