add layout option to swap script