Перекособочиться = перекоситься = to distort. It's from "косой бок" = "askew side". Expressive and not quite literary word.