A method comprising: detecting a first drag event which occurs on a display (305; 515; 615; 815; 915) of a device (10, 300; 510; 610; 710; 810; 910; 1010; 1020; 1100), wherein the display of the device is substantially rectangular and has a longitudinal axis; receiving a message indicating that a second drag event has occurred on a display (315; 525; 625; 825; 925) of a nearby device (20; 310; 520; 620; 820; 920; 1020; 1030; 1120; 1130; 1140) during the first drag event, wherein the display of the nearby device is substantially rectangular and has a longitudinal axis; determining a relative orientation of the display of the device and the display of the nearby device on the basis of the first drag event and the second drag event corresponding with a user performing a pinching motion, wherein: if the longitudinal axis of the display of the device and the longitudinal axis of the display of the nearby device are determined to be parallel, the display of the device and the display of the nearby device are joined such that the display of the device displays first information and the display of the nearby device displays second information, which expands the display of the device; and if the longitudinal axis of the display of the device and the longitudinal axis of the display of the nearby device are determined to be perpendicular, the display of the device and the display of the nearby device are joined such that the display of the device displays first information and the display of the nearby device displays third information, which includes options rather than expanding the display of the device. detecting a first drag event which occurs on a display (305; 515; 615; 815; 915) of a device (10, 300; 510; 610; 710; 810; 910; 1010; 1020; 1100), wherein the display of the device is substantially rectangular and has a longitudinal axis; receiving a message indicating that a second drag event has occurred on a display (315; 525; 625; 825; 925) of a nearby device (20; 310; 520; 620; 820; 920; 1020; 1030; 1120; 1130; 1140) during the first drag event, wherein the display of the nearby device is substantially rectangular and has a longitudinal axis; determining a relative orientation of the display of the device and the display of the nearby device on the basis of the first drag event and the second drag event corresponding with a user performing a pinching motion, wherein: if the longitudinal axis of the display of the device and the longitudinal axis of the display of the nearby device are determined to be parallel, the display of the device and the display of the nearby device are joined such that the display of the device displays first information and the display of the nearby device displays second information, which expands the display of the device; and if the longitudinal axis of the display of the device and the longitudinal axis of the display of the nearby device are determined to be perpendicular, the display of the device and the display of the nearby device are joined such that the display of the device displays first information and the display of the nearby device displays third information, which includes options rather than expanding the display of the device. if the longitudinal axis of the display of the device and the longitudinal axis of the display of the nearby device are determined to be parallel, the display of the device and the display of the nearby device are joined such that the display of the device displays first information and the display of the nearby device displays second information, which expands the display of the device; and if the longitudinal axis of the display of the device and the longitudinal axis of the display of the nearby device are determined to be perpendicular, the display of the device and the display of the nearby device are joined such that the display of the device displays first information and the display of the nearby device displays third information, which includes options rather than expanding the display of the device.