Paths and cycles in expanders