make rainbow position independent of window height