add batch resize shell snippet