add position method to slides controller