slicing on the fly coded