Make new resize working with slice