ionly load figures when viewing them