refatorando thumbnail view