fix #18 : toggle css class on layout change instead of change css property directly