resize added views to limit them to the size of their parent view