started with flattening methods, fixes for OCTViewer slider