Remove useless div for gallery layout