Add an helper function to generate a layout switcher item