From the adverb thus this expression is created as "in this way or in this way" to expose two options or variants in a situation. See "just like that," "so like that."