Option to give a layout a certain duration