split layout for api