move FlattenLayer