new method for getting next and prev attrs for profiles