split rect into pieces