You could use the following, making sure that when you modify the hardware configuration, that the analog input and analog output addresses on each module are the same as on your 6ES7 334-0KE00-0AB0:
6ES7331-1KF02-0AB0 8 channel analog input module + 6ES7392-1AM00-0AB0 40-pin connector
OR
6ES7331-7KF02-0AB0 8 channel analog input module (more expensive) + 6ES7392-1AJ00-0AB0 20-pin connector
AND
6ES7332-5HB01-0AB0 2 channel analog output module + 6ES7392-1AJ00-0AB0 20-pin connector
OR
6ES7332-5HD01-0AB0 4 channel analog output module + 6ES7392-1AJ00-0AB0 20-pin connector