Thailand slips to 31st on Olympics medals table