Resizing gallery and comment views based on screen size.