Add automatic window positioning logic

The slider should display similarly to a menu.