Retractable steps or ladders