convert layout to slim