replace divs with semantic elements and fix image overflow