prepare_mixed_param function

Prepare parameters for mixed layouts.