 
 extension Segmentio.Points {
     
-    init(item: Segmentio.ItemInSuperview, atIndex index: Int, allItemsCellWidth: [CGFloat], pointY: CGFloat, position: SegmentioPosition, style: SegmentioStyle, leftInset: CGFloat, rightInset: CGFloat) {
+    init(item: Segmentio.ItemInSuperview, atIndex index: Int, allItemsCellWidth: [CGFloat], pointY: CGFloat, position: SegmentioPosition, style: SegmentioStyle, insets: UIEdgeInsets) {
         let cellWidth = item.cellFrameInSuperview.width
         var startX = item.startX
         var endX = item.endX
-        var spaceBefore: CGFloat = leftInset
-        var spaceAfter: CGFloat = -rightInset
+        var spaceBefore: CGFloat = insets.left
+        var spaceAfter: CGFloat = -insets.right
         var i = 0
         allItemsCellWidth.forEach { width in
             if i < index { spaceBefore += width }

                pointY: indicatorPointY(),
                position: segmentioOptions.segmentPosition,
                style: segmentioStyle,
                leftInset: superviewInsets.left,
                rightInset: superviewInsets.right
            )
            let insetX = ((points.endPoint.x - points.startPoint.x) - (item.endX - item.startX))/2
            moveShapeLayer(

                pointY: bounds.midY,
                position: segmentioOptions.segmentPosition,
                style: segmentioStyle,
                insets: superviewInsets
            )
            
            moveShapeLayer(
