now auto-handles image and slice sizes