implemented setlayout in the way proposed on the ml, split tile() into two functions...