Here's how Samsung's foldable Galaxy X smartphone will work