setting frame dimensions