adjust layout and style for medium sized devices