public Slice(double start,double end,boolean visible){
  this.start=start;
  this.end=end;
  this.visible=visible;
}

public Slice ( double start , double end , boolean visible ) { this . start = start ; this . end = end ; this . visible = visible ; }
initializes a new slice with start and end value .
