making the layout for various screen sizes