fix bug in switching smartphone/PC layout (fix #3714, BP from #3364)

bug ticket http://redmine.openpne.jp/issues/3364
BP ticket http://redmine.openpne.jp/issues/3714