fixing bug when screen width overflow