You cannot use batteries in series an paralle at the same time.
Either in parelle, or in series.
What you can do is connect batteries in parallel to increase capacity. Then connect packs of paralleled batteries in series. Use only battteries of the same type and capacity.
If you can, better use battteries of the required voltage and amperehours instead of connecting them in stacks.