fixed bug in slicequeue and gcodequeue routines