added 'orientation' feature to display different popup container sizes for vertical, horizontal, and square (default vertical)