create outer bound for the sideframe, fixes #2459
add restriction when sideframe is larger than window on refresh, fixes #2458