split window size into height and width inside of a nested relative layout