puts gallery inside form