fix the problem that pictures are overlapped