Searches for heavy long-lived sleptons and R-hadrons with the ATLAS detector in pp collisions at