better partially visible thumbnail handling