Firefox: functions must be declared first. Fix slider height reflow issue.